/*
 * @Author: wwssaabb
 * @Date: 2021-08-16 17:09:10
 * @LastEditTime: 2021-08-16 17:16:12
 * @FilePath: \ts_demo\demo\omit.ts
 */

/* 
  Omit,Omit<T, K>从类型T中剔除K中的所有属性
*/

interface A{
  name:string,
  age:number,
  sex:string,
  address:string
}

interface B{
  name:string,
  age:number,
}

type C=Omit<A,keyof B>
/* 
  类型c为{
    sex: string;
    address: string;
  }
*/
export {}